import router from '@system.router';


export default {
    data: {
        percent: 40,
        secondaryPercent: 100,
        dir: 1,
    },
    onInit() {
    },
    onShow() {
    },
    toCountDown() {
        console.log('to countDown page')
        router.push({
            uri: 'pages/countDown/index',
        });
    },
    animation() {
        this.handleFrame = setTimeout(() => this.animation(),500);
        this.percent  = Math.random() * 100;
        this.secondaryPercent  = Math.random() * 100;
    }
}